 /**
   * Copyright 2014 Viettel Telecom. All rights reserved.
   * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   */
 package com.viettel.core.dao.cms; 
import java.util.List;

import com.viettel.core.entities.cms.Media;
import com.viettel.core.entities.vo.MediaSearchFilter;
import com.viettel.core.entities.vo.MediaSearchVO;
import com.viettel.core.exceptions.DataAccessException; 
 /**
   *  Mo ta muc dich cua lop (interface)
   *  @author: TOANTM1
   *  @version:  
   *  @since: 27/02/2014 - 11:34:02
   */
 public interface MediaDAO { 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	Media getMediaById(Integer id) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	Media createMedia(Media media) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	void updateMedia(Media media) throws DataAccessException; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	void deleteMedia(Media media) throws DataAccessException; 
 	
 	/**
 	 * @author huanlh5
 	 * @param filter
 	 * @throws DataAccessException
 	 */
 	List<MediaSearchVO> getListMediaByFilter(MediaSearchFilter filter) throws DataAccessException;
 	
 	/**
 	 * @author tuantm20
 	 * @throws DataAccessException
 	 */
 	List<Media> getAllMedias() throws DataAccessException;
 	List<Media> getListMediasByCmsUserId(Integer id) throws DataAccessException;
 	Boolean checkNameExist(String userName) throws DataAccessException;
 	Boolean checkCodeExist(String userName) throws DataAccessException;
 	Integer getIdFromName(String userName) throws DataAccessException;
 	Media getMediaFromName(String userName) throws DataAccessException;
} 
